package com.zhao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhao.pojo.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    List<Article> host(@Param("i") int i);

    List<Article> dyGetUserList(Page<Article> page, @Param("like") String like,@Param("author")String author,@Param("show") String show);

    Article dyOne(@Param("id") Integer id);

    List<Article> dyGetUserListTop(Page<Article> page, String like, String author);

    String listTop(String userAccount);

    List<Article> selectListTop( @Param("like") String like, @Param("author")String userAccount);

}
